package com.zheng.hr.dao.model;

import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;

/**
 * <p>
 * hr_award_penalty 奖惩记录
 * </p>
 *
 * @author likun
 * @since 2018-04-19
 */
@TableName("hr_award_penalty")
public class HrAwardPenalty extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 档案ID
     */
	@TableField("personal_id")
	private Integer personalId;
    /**
     * 奖惩类别(0：奖励；1：处罚)
     */
	private Integer type;
    /**
     * 奖惩名目
     */
	private String name;
    /**
     * 金额
     */
	private BigDecimal money;
    /**
     * 主办人ID
     */
    /**
     * 奖惩时间
     */
	private Date time;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPersonalId() {
		return personalId;
	}

	public void setPersonalId(Integer personalId) {
		this.personalId = personalId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
	@Override
	protected Serializable pkVal() {
		return id;
	}
	@Override
	public String toString() {
		return "HrAwardPenalty{" +
			"id=" + id +
			", personalId=" + personalId +
			", type=" + type +
			", name=" + name +
			", money=" + money +
			", time=" + time +
			", ctime=" + ctime +
			"}";
	}
}
